package org.pskovgu.pskovbus;

public class Bus {
	private long id;
	private String name;
	private String number;
	private Station start;
	
	public Station getStart() {
		return start;
	}

	public void setStart(Station start) {
		this.start = start;
	}

	public Station getStop() {
		return stop;
	}

	public void setStop(Station stop) {
		this.stop = stop;
	}

	private Station stop;
	
	public void setNumber(String number) {
		this.number = number;
	}

	public void setId(long id)
	{
		this.id = id;
	}
	
	public long getId()
	{
		return id;
	}
	
	public void setName(String name)
	{
		this.name = (name!=null)?name:"DFLT";
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getNumber()
	{
		return number;
	}
	
	public String toString()
	{
		return number + " " + name;
	}
	
	

}
